package com.atguigu.gmall.product.service;

import io.minio.errors.InvalidEndpointException;
import io.minio.errors.InvalidPortException;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author lfy
 * @Description
 * @create 2022-10-31 15:40
 */
public interface FileUploadService {

    /**
     * 把文件传输给Minio
     * @param file
     * @return
     */
    String uploadToMinio(MultipartFile file) throws Exception;
}
